@<template>
  <div class='recommends'>
      <div  v-for="item in recommends" :key="item.sort">
          
          <a :href="item.link">
              <img :src="item.image" alt="">
              <div>{{item.title}}</div>
          </a>
      </div>
  </div>
</template>

<script>

export default {
    props: {
        recommends: {
            type: Array,
            default(){
                return []
            }
        }
    }
}
</script>

<style>
.recommends{
    width: 100%;
    display: flex;
    justify-content: space-around;
    text-align: center;
    font-size: 12px;
    border-bottom: 8px solid #eee;
    padding-bottom: 15px;
    
}
.recommends>div {

    margin: 10px 0 5px; 
    flex: 1;
    padding: 0 5px;

}
.recommends img {
    width: 100%;
    
    margin-bottom: 15px;
}

</style>